<?php


 class HomeController extends AllController  {


     public function index()
  {

      require ('./Config.php');


      Twig_Autoloader::register();
      $loader = new Twig_Loader_Filesystem($config['template_dir']);
      $twig = new Twig_Environment($loader,[
          'cache' => $config['cache_dir'],
          'debug' => $config['debug'],
      ]);

     $ok= Home::index();

	 $twig->display('index.html',['ok'=> $ok ]);



  }


 }